package com.gs.cd.service.feign.sso;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;

/**
 * Created by hippo  2020/2/20
 *
 * @Description
 */
@Slf4j
@Data
public class SSOResult implements Serializable {

    @JsonProperty("errorCode")
   protected Integer errorCode;
   protected Object data;
   protected String message;

    public boolean isSuccess() {
        return errorCode == 0 || "success".equals(message.toLowerCase());
    }
}
